# urls.py for DL4
#
#
#
from django.conf.urls.defaults import *
from dl4.views import *
from dl4module.views import *
from dailylang.views import *
#from django.contrib.auth.views import logout

# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
    # Example:
    # (r'^dl4/', include('dl4.foo.urls')),

    # Uncomment the admin/doc line below and add 'django.contrib.admindocs' 
    # to INSTALLED_APPS to enable admin documentation:
    # (r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    (r'^admin/', include(admin.site.urls)),
    
    (r'', include('django.contrib.auth.urls')),
    
    (r'^hello/$', hello),
    (r'^hello_from_dl/$', hello_from_dl),
    (r'^categories/(\d+)/(\d+)', categories),
    (r'^digest_form/$', digest_form),
    (r'^hexdigest/$', hexdigest),
    (r'^registration_form/$', registration_form),
    (r'^accounts/login/$',  login),
    (r'^login/$',  login),
    
    (r'^accounts/logout/$', logout, {'next_page': '/accounts/logged_out'}),
    (r'^accounts/register/$', register),
    (r'^accounts/profile/$', profile),
    (r'^accounts/credentials/$', credentials),
    (r'^accounts/user_change/$', user_change),
    (r'^accounts/user_profile/$', user_profile),
    (r'^accounts/logged_in/$', logged_in),
    (r'^accounts/logged_out/$', logged_out),
    (r'^data/categories/$', categories),
    (r'^data/profile/$', profile),
    (r'^data/phrases_of_day/$', phrases_of_day),
    (r'^data/add_phrases/$', add_phrases),
    ('^main/', main_page),

)
